package com.xjl.demo;
import java.io.Serializable;

public class Goods implements Serializable {
	private int gid;
	private String cid;
	private String gname;
	private String brand;
	private String gimage;
	private String content;
	private String shelftime;
	private double gprice; 
	private int gstock;
	public Goods() {}
	public Goods(int gid,String cid,String gname,String brand,String gimage,String content,String shelftime,double gprice,int gstock)
	{
		this.gid=gid;
		this.cid=cid;
		this.gname=gname;
		this.brand=brand;
		this.gimage=gimage;
		this.content=content;
		this.shelftime=shelftime;
		this.gprice=gprice;
		this.gstock=gstock;
	}
	public Goods(String cid,String gname,String brand,String gimage,String content,String shelftime,double gprice,int gstock)
	{
		this.cid=cid;
		this.gname=gname;
		this.brand=brand;
		this.gimage=gimage;
		this.content=content;
		this.shelftime=shelftime;
		this.gprice=gprice;
		this.gstock=gstock;
	}
	public int getGid() {
		return gid;
	}
	public void setGid(int gid) {
		this.gid = gid;
	}
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getGname() {
		return gname;
	}
	public void setGname(String gname) {
		this.gname = gname;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getGimage() {
		return gimage;
	}
	public void setGimage(String gimage) {
		this.gimage = gimage;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getShelftime() {
		return shelftime;
	}
	public void setShelftime(String shelftime) {
		this.shelftime = shelftime;
	}
	public double getGprice() {
		return gprice;
	}
	public void setGprice(double gprice) {
		this.gprice = gprice;
	}
	public int getGstock() {
		return gstock;
	}
	public void setGstock(int gstock) {
		this.gstock = gstock;
	}
	@Override
	public String toString() {
		return "Goods [gid=" + gid + ", cid=" + cid + ", gname=" + gname + ", brand=" + brand + ", gimage=" + gimage
				+ ", content=" + content + ", shelftime=" + shelftime + ", gprice=" + gprice + ", gstock=" + gstock
				+ "]";
	}
	
}
